package org.hxyjs.dao;

import org.hxyjs.entity.AdministratorType;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface AdministratorTypeDao {

    //查询全部
    public List<AdministratorType> getAllAdministratorTypes() throws Exception;

    //按主键查询
    public AdministratorType getAdministratorTypeByAno(String ano) throws Exception;

    //分页查询
    public List<AdministratorType> getAdministratorTypeByPage(PageInfo pageInfo) throws Exception;

    //增删改的返回值都是整数
    //增加
    Integer addAdministratorType(AdministratorType administratorType) throws Exception;

    //删除
    Integer deleteAdministratorTypeByAno(String ano) throws Exception;

    //修改
    Integer updateAdministratorTypeByAno(AdministratorType administratorType) throws Exception;



}
